package com.gaoyubo.dao;

import com.gaoyubo.entity.User;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.Optional;

public interface UserDao extends JpaRepository<User,Integer>,JpaSpecificationExecutor<User> {

    Optional<User> findByName(String name);
}
